<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<base href="<%=basePath %>">
	<title>left</title>
	<link rel="stylesheet" type="text/css" href="<%=basePath %>attend/frame/css/layout.css"/>
	<script language="javascript" type="text/javascript" src="<%=basePath %>attend/frame/js/prototype.lite.js"></script>
	<script language="javascript" type="text/javascript" src="<%=basePath %>attend/frame/js/moo.fx.js"></script>
	<script language="javascript" type="text/javascript" src="<%=basePath %>attend/frame/js/moo.fx.pack.js"></script>
</head>

<body>
<body>
    <div id="nav">
<%--    普通员工考勤模块--%>
      <h1 class="type"><a href="javascript:void(0);">我的考勤</a></h1>
      <div class="content">
      <div class="topline"></div>
        <ul>
          <li><a href="MyAttend.do?USERID=${USER.userId}&code=1" target="main">本月考勤</a></li>
          <li><a href="MyAttend.do?USERID=${USER.userId}&code=2" target="main">上月考勤</a></li>
          <li><a href="MyAttend.do?USERID=${USER.userId}&code=3" target="main">近三个月考勤</a></li>
        </ul>
      </div>
<%--  信息管理员模块--%>
<c:if test="${USER.postId==102 || USER.postId == 201 || USER.name=='江锦轩' || USER.name=='吴倩' || USER.name=='何振东'}">
      <h1 class="type"><a href="javascript:void(0);">管理员</a></h1>
      <div class="content">
      <div class="topline"></div>
        <ul>
          <li><a href="Manager?USERID=${USER.userId}&sta=1" target="main">本月员工考勤</a></li>
          <li><a href="Manager?USERID=${USER.userId}&sta=2" target="main">上月员工考勤</a></li>
          <li><a href="Manager?USERID=${USER.userId}&sta=3" target="main">近三月员工考勤</a></li>
		  <li><a href="ShowUser?USERID=${USER.userId}" target="main">员工管理</a></li>
		  <li><a href="http://192.168.218.10:8080/shortmsg/ShortMsgSend?u=${USER.userId}" target="main">催费短信发送</a></li>
        </ul>
      </div>
      </c:if>
<%--      申诉模块--%> 
<c:if test="${USER.name=='江锦轩' ||USER.name=='吴倩' || rol!=0 || USER.name=='何振东'}">
      <h1 class="type"><a href="javascript:void(0);">管理查看</a></h1>
      <div class="content">
      <div class="topline"></div>
        <ul>
		  <li><a href="Admins?sta=1" target="main">本月员工考勤</a></li>
		  <li><a href="Admins?sta=2" target="main">上月员工考勤</a></li>
		  <li><a href="Admins?sta=3" target="main">近三个月员工考勤</a></li>
          <li><a href="Accepts?rid=${usI}" target="main">查看申诉</a></li>
        </ul>
      </div>
      </c:if>
     <c:if test="${USER.name=='江锦轩'|| USER.name=='何振东'||USER.name=='梁小燕'||USER.name=='何飞'}">
      <%--      考勤设置模块--%>
      <h1 class="type"><a href="javascript:void(0);">系统设置</a></h1>
      <div class="content">
      <div class="topline"></div>
        <ul>
		   <li><a href="ShowUser?USERID=${USER.userId}&sta=1" target="main">员工管理</a></li>
        </ul>
      </div>
        </c:if>
    </div>

    <script type="text/javascript">
		var contents = document.getElementsByClassName('content');
		var toggles = document.getElementsByClassName('type');
		var myAccordion = new fx.Accordion(toggles,contents,{opacity: true, duration: 400});
		myAccordion.showThisHideOpen(contents[0]);
	</script>
</body>
</html>
